package cn.edu.scau.cmi.zhuangzhihong.client;

import org.springframework.context.ApplicationContext;

import cn.edu.scau.cmi.zhuangzhihong.spring.domain.Student;
import cn.edu.scau.cmi.zhuangzhihong.spring.domain.Teacher;
import cn.edu.scau.cmi.zhuangzhihong.spring.util.ApplicationContextUtil;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class client extends Application{
//	private static Teacher liangzaoqing;
//	private static Student zhuangzhihong;
//	private static ApplicationContext getApplicationContext() {
//		ApplicationContext applicatonContext = ApplicationContextUtil.getApplicationContext();
//		zhuangzhihong=(Student) applicatonContext.getBean("zhuangzhihong");
//		return applicatonContext;
//	}
	public client() {
		
	}
	public void start(Stage primaryStage) {
        try {
            // Read file fxml and draw interface.
        	
            Parent root = FXMLLoader.load(getClass()
                    .getResource("view.fxml"));

            primaryStage.setTitle("spring");
            primaryStage.setScene(new Scene(root));
            primaryStage.show();
           
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
    
   

    public static void main(String[] args) {
    	
        launch(args);
    }
//	public static void main(String[] args) {
//		getApplicationContext();
//		System.out.println(zhuangzhihong.getName()+"的毕业设计指导老师是"+zhuangzhihong.getTutor().getName());
//		
	
	}

//	private static ApplicationContext getApplicationContext() {
//		ApplicationContext applicatonContext = ApplicationContextUtil.getApplicationContext();
//		zhuangzhihong=(Student) applicatonContext.getBean("zhuangzhihong");
//		return applicatonContext;
//	}
//}
